package com.qf.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/10/26 19:40
 */
@Service
public class AuthServiceImpl implements AuthService {
    @Value("${custom.username}")
    private String userNameDB;
    @Value("${custom.password}")
    private String passwordDB;

    @Override
    public boolean login(String username, String password) {

        if(userNameDB.equals(username) && passwordDB.equals(password)){
            return true;
        }
        return false;
    }
}
